module.exports = class extends think.Model {
  async addScenicItem(data) {
    await this.add(data);
  }

  async getScenics(fileId) {
    const scenics = await this.where({ fileId }).select();
    return scenics;
  }

  async updateScenic(id, data) {
    await this.where({ id }).update(data);
  }
};
